package com.shuoyutech.dp.common.base;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.shuoyutech.dp.common.framework.repair.Long2String;
import com.shuoyutech.dp.common.framework.repair.String2Long;
import lombok.Data;

import java.io.Serializable;

/**
 * @author dyb
 * @date 2021/2/25
 */
@Data
public abstract class BaseEntity implements Serializable {

    @ExcelIgnore
    @JsonSerialize(using = Long2String.class)
    @JsonDeserialize(using = String2Long.class)
    private Long id;

}
